#include "pch.h"
#include "AllStruct.h"
using namespace std;

AllStruct::AllStruct()
{
	_all = vector<DemoStruct>();
}

void AllStruct::Clear()
{
	_all.clear();
}

AllStruct::DemoStruct AllStruct::Read(int id)
{
	if (_all.size() > id)
		return _all[id];
	else
		return DemoStruct();
}

void AllStruct::Add(DemoStruct value)
{
	_all.push_back(value);
}
